package com.neuedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 挂号级别表
 * </p>
 *
 * @author LiYang
 * @since 2024-11-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("regist_level")
public class RegistLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    public RegistLevel(String code, String name, Integer fee, Integer quota, Integer sequenceNo) {
        this.code = code;
        this.name = name;
        this.fee = fee;
        this.quota = quota;
        this.sequenceNo = sequenceNo;
    }

    public RegistLevel(Long id, String code, String name, Integer fee, Integer quota, Integer sequenceNo) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.fee = fee;
        this.quota = quota;
        this.sequenceNo = sequenceNo;
    }

    public RegistLevel(Long id, Boolean delmark) {
        this.id = id;
        this.delmark = delmark;
    }

    /**
     * ID主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 号别编码
     */
    private String code;

    /**
     * 号别名称
     */
    private String name;

    /**
     * 挂号费
     */
    private Integer fee;

    /**
     * 挂号限额
     */
    private Integer quota;

    /**
     * 显示顺序号
     */
    private Integer sequenceNo;

    /**
     * 删除标记
     */
    private Boolean delmark;
}
